<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
		<base href="<%=basePath%>/cloud" />
		<title>快哥云仓管理系统</title>
		<link rel="stylesheet" href="../css/main.css" />
		<link rel="stylesheet" href="../css/login.css" />
		<script type="text/javascript" src="../js/lib/jquery.min.js" ></script>
		<script type="text/javascript" src="../js/lib/avalon_1.5.js" ></script>
		<script type="text/javascript" src="../js/main.js" ></script>
	</head>
	<body  oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
		<div class="container" ms-controller="login" ms-on-keydown="loginEnter">
			<div class="loginBox">
				<div class="systemTitleBox">
					<label class="systemTitle">快哥云仓管理系统</label>
					<label class="version">V2.0</label>
				</div>
				<div class="inputBox">
					<input id="userName" type="text" placeholder="&nbsp;用户名/工号" ms-duplex="userName"/>
					<div class="icon"><img src="../img/icon_user2.png"/></div>
					<div class="tips" ms-if="errorUserNameContent!=''">{{errorUserNameContent}}</div>
				</div>
				<div class="inputBox">
					<input type="password" placeholder="&nbsp;登录密码" ms-duplex="password"/>
					<div class="icon"><img src="../img/icon_pwd2.png"/></div>
					<div class="tips" ms-if="errorPasswordContent!=''">{{errorPasswordContent}}</div>
				</div>
				<div class="inputBox">
					<div class="code">
						<input type="text" placeholder="&nbsp;验证码" ms-duplex="randomCode" maxlength="4"/>
						<img ms-attr-src="getRandomCode"/>
						<label ms-on-click="changeRandomCode">看不清，换一张？</label>
					</div>
					<div class="tips" ms-if="errorRandomCodeContent!=''">{{errorRandomCodeContent}}</div>
				</div>
				<button ms-on-click="login">立即登录</button>
			</div>
		</div>
	</body>
</html>
<script>
	$(function(){
		$("#userName").focus();
	});
</script>